gpio-button-hotplug: some modern cleanups
authorRosen Penev <[email protected]>
Tue, 2 Dec 2025 23:19:10 +0000 (15:19 -0800)
committerHauke Mehrtens <[email protected]>
Tue, 9 Dec 2025 00:04:17 +0000 (01:04 +0100)
commit05cd169cd49e99ce8f022892e4ba119312e1a8f7
tree586a71fbde19d13b1d79eb2f4cec75f69e82b6d8
parentcc2aefe6195322ce73e2f20b2801352c5be737c5
gpio-button-hotplug: some modern cleanups

devm_kmalloc_array addition.

of_property_present instead of boolean hack.

for_each_available_child_of_node_scoped to avoid of_node_put.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21033
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c